﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class SupermanAndxx
    {

    }
    interface Iflyable
    {
        void takeoff();
        void fly();
        void land();

    }
    class vehicle
    {

    }
    class superman : Animal, Iflyable
    {
        public void takeoff()
        {
            Console.WriteLine("超人限载5人有载人能力（双手 双脚 嘴），乘客危险请勿超速");
        }
        public void fly()
        {
            Console.WriteLine("会飞");
        }
        public void land()
        {
            Console.WriteLine("能安全着陆");
        }
    }
    class bird : Animal, Iflyable
    {
        public void takeoff()
        {
            Console.WriteLine("鸟没有承载能力");
        }
        public void fly()
        {
            Console.WriteLine("会飞");
        }
        public void land()
        {
            Console.WriteLine("能安全着陆");
        }
        public void layEggs() {
            Console.WriteLine("还会下蛋");
        }
    }
    class plane : vehicle, Iflyable {
        public void takeoff()
        {
            Console.WriteLine("飞机有承载能力");
        }
        public void fly()
        {
            Console.WriteLine("能飞");
        }
        public void land()
        {
            Console.WriteLine("能安全着陆");
        }
        public void carryPassange() {
            Console.WriteLine("能承载上百的乘客");
        }
    }
}
